package com.hdax.dm.entity.item;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hdax.dm.entity.BaseTimeEntity;
import lombok.Data;

import java.util.List;

@Data
@TableName("item_item_type")
public class DmItemType extends BaseTimeEntity {

    @TableId(value = "id",type= IdType.AUTO)
    private Long id;
    private String itemType;
    private Long level;
    private Long parent;
    private Long key;

    @TableField(exist = false)
    private List<DmItemType> children;

}
